package com.cdyx.outsideprescription.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.cdyx.outsideprescription.dto.VisitInfoDto;
import com.cdyx.outsideprescription.entity.TbAddprecription;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiang dongqiong
 * @since 2021-12-17
 */
public interface TbAddprecriptionMapper extends BaseMapper<TbAddprecription> {

    TbAddprecription selectPrecriptionInfo(@Param("visitNo") String visitNo,@Param("year") int year);

    TbAddprecription selectByVisitNo(String visitNo);

    VisitInfoDto selectVisitInfoByVisitNo(String visitNo);

    void updateStatus(String visitNo);
}
